<?php

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

class Visitor extends Model
{

    protected $guarded = [];

    public function scopeToday($query)
    {

        $todayTime= Carbon::today();

        return $query->where('created_at', '>', $todayTime);
    }


}
